{include file="header.html"}
<div> 
{include file='kcorder/nav.html'}
<form method="get" action="{$appadmin}">
<input type="hidden" name="m" value="kcorder" />
<input type="hidden" name="a" value="default" />
<p>
订单号：<input type="text" name="orderno" value="{$smarty.get.orderno}" />
{get data=kclist model=kucun fun=select(array("where"=>"1"))}
供应商：<select name="kcid" class="w100">
<option value="0">请选择</option>
{foreach item=c   from=$kclist} 
<option value="{$c.kcid}" {if get('kcid') eq $c.kcid} selected="selected"{/if}>{$c.title}</option>
{/foreach}
</select>
状态：<select name="s_status" class="w100">
<option value="-1">请选择</option>
{foreach item=c key=k from=$order_status_list}
{if $k<99}<option value="{$k}" {if $smarty.get.s_status eq $k} selected="selected" {/if}>{$c}</option>{/if}
{/foreach}
</select>
{get data=sites model=sites fun=select(array("where"=>"1"))}
学校：<select name="siteid" class="w100">
<option value="0">请选择</option>
{foreach item=c   from=$sites} 
<option value="{$c.siteid}" {if get('siteid') eq $c.siteid} selected="selected"{/if}>{$c.sitename}</option>
{/foreach}
</select>
<br />
店铺类型：<select name="typeid">
<option value="0">请选择</option>
<option value="1" {if get('typeid') eq 1} selected{/if}>夜猫店</option>
<option value="2" {if get('typeid') eq 2} selected{/if}>口袋店</option>
</select>
店铺：<input type="text" name="shopname"  value="{$smarty.get.shopname|html}">
 
开始时间：<input type="text" name="start_time" value="{$smarty.get.start_time}"  onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
结束时间：<input type="text" name="end_time" value="{$smarty.get.end_time}"   onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />


<input type="submit" value="搜索" class="btn btn-warning" />
</p>
</form>
 <table class='table table-bordered' width='100%'>
  <tr>
   <td>orderno</td>
   
   <td>库存</td> 
  <td>店铺</td>
   <td>下单时间</td>
   <td>联系人</td>
   <td>电话</td>
   <td>地址</td>
   <td>金额</td>
   <td>状态</td>
   <td>支付</td>
   
<td>操作</td>
  </tr>
 {foreach item=c from=$data}
<tr>
 <td>{$c.orderno}</td>
 <td>{$c.kc_title}</td>
   <td>[{if $c.typeid eq 1}夜猫{else}口袋{/if}]{$c.shop_name}</td>
   
    
   <td>{$c.dateline|date:Y-m-d}</td>
   <td>{$c.nickname}</td>
   <td>{$c.telephone}</td>
   <td>{$c.sitename} {$c.address}</td>
   <td>{$c.money}</td>
   <td>{$order_status_list[$c.status]}</td>
   <td>{if $c.ispay eq 2}已支付{else}未支付{/if}</td>
   
<td>  <a href="{$appadmin}?m=kcorder&a=show&order_id={$c.order_id}&typeid={$c.typeid}">查看</a>  </td>
  </tr>
   {/foreach}
 </table>
<div>{$pagelist}</div>
</div> 
<script language="javascript" src="/plugin/My97DatePicker/WdatePicker.js"></script>
{include file="footer.html"}